openapi: 3.0.1
info:
title: ''
description: ''
version: 1.0.0
paths:
/v1/chat/completions:
post:
summary: 图片编辑(Nano-banana) base64格式
deprecated: false
description: ''
tags:
- 模型接口/Google Gemini/OpenAI兼容接口(推荐)
parameters:
- name: Accept
in: header
description: ''
required: true
example: application/json
schema:
type: string
default: application/json
- name: Authorization
in: header
description: ''
required: true
example: sk-
schema:
type: string
default: sk-
- name: Content-Type
in: header
description: ''
required: true
example: application/json
schema:
type: string
requestBody:
content:
application/json:
schema:
type: object
properties: {}
x-apifox-orders: []
example:
model: gemini-2.5-flash-image-preview
stream: false
messages:
- role: user
content:
- type: text
text: add a dog
- type: image_url
image_url:
url: >-
data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/4gHYSUNDX1BST0ZJTEUAAQEAAAHIAAAAAAQwA......
responses:
'200':
description: ''
content:
application/json:
schema:
type: object
properties: {}
x-apifox-orders: []
example:
id: string
object: string
created: 0
choices:
- index: 0
message:
role: string
content: string
finish_reason: string
usage:
prompt_tokens: 0
completion_tokens: 0
total_tokens: 0
headers: {}
x-apifox-name: 成功
security: []
x-apifox-folder: 模型接口/Google Gemini/OpenAI兼容接口(推荐)
x-apifox-status: released
x-run-in-apifox: https://app.apifox.com/web/project/5503894/apis/api-343665751-run
components:
schemas: {}
securitySchemes: {}
servers:
- url: '{{base_url}}'
description: 测试环境
- url: https://newapi.eronmind.com
description: 正式环境
security: []